<template>
  <div>
    <router-link to="/">首页</router-link>
    <div v-for="(item,index) in navData" v-bind="index">
      <router-link :to="item.path">{{item.title}}</router-link>
    </div>
    <router-view></router-view>
    <!-- <Event /> -->
  </div>
</template>

<script>
import { navData } from '@/untils/nav';


export default {
  name: 'App',
  components: {
    //step2: 注册组件
  
    // Event,
  
  },
  setup() {
    return {
      navData
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
